import request from '@/utils/request';

export function listRecommend(query) {
  return request({
    url: '/main/recommend/list',
    method: 'get',
    params: query
  });
}

export function addRecommend(data) {
  return request({
    url: '/main/recommend/add',
    method: 'post',
    data: data
  })
}

export function editRecommend(data) {
  return request({
    url: '/main/recommend/edit',
    method: 'put',
    data: data
  })
}

export function removeRecommend(id) {
  return request({
    url: '/main/recommend/remove/'+id,
    method: 'delete'
  })
}
